package file;

import java.util.ArrayList;
import java.util.Observable;

public class Leech extends Observable {

	private ArrayList<File> myLeech;

	public Leech(){
		myLeech = new ArrayList<File>();
		setChanged();
		notifyObservers();
	}
	
	public Leech(ArrayList<File> af){
		this.myLeech = af;
		setChanged();
		notifyObservers(af);
	}
	
	
	public ArrayList<File> getMyLeech() {
		return myLeech;
	}

	public void setMyLeech(ArrayList<File> myLeech) {
		this.myLeech = myLeech;
		setChanged();
		notifyObservers(myLeech);
	}
	
	public void add(File f){
		this.myLeech.add(f);
		setChanged();
		notifyObservers(f);
	}
	
}
